<?php

    function ActionUserLogin( tString $username, tString $password ) {
        global $rabbit_settings;

        $username = $username->Get();
        $password = $password->Get();

        setcookie( 'baboo_user', "$username:$password", time() + 60 * 60 * 24 * 30, '/' . $rabbit_settings[ 'url' ] );

        return Redirect( '' );
    }

?>
